package cn.zyq.ykb.beans.cps;

import cn.zyq.ykb.system.common.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * cps-物料对象 cps
 *
 * @author SystemAuth
 * @date 2024-01-22
 */
@Data
@Entity
@Table(name = "`cps`")
public class Cps  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`cpsID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer cpsID;
    /**
     * 物料名称
     */
    @Column(name = "`name`")
    @ApiModelProperty("物料名称")
    private String name;
    /**
     * 物料ID
     */
    @Column(name = "`materialID`")
    @ApiModelProperty("物料ID")
    private Integer materialID;
}
